<include file="public@header" />
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Stuff/index')}">{:lang('ADMIN_ROCK_INDEX')}</a></li>
			<li class="active"><a href="{:url('Stuff/add')}">{:lang('ADMIN_ROCK_ADD')}</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form" action="{:url('Stuff/add_post')}" method="post" enctype="multipart/form-data">
            <fieldset>
				<div class="control-group">
					<label class="control-label">{:lang('ROCK_NAME')}</label>
					<div class="controls">
						<input type="text" name="goods_name" class="form-control" value="" id="goods_name"/>
						<span class="form-required">*</span>
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">{:lang('CATE_NAME')}</label>
					<div class="controls">
                    	<input type="text" name="goods_name" class="form-control" value="" id="goods_name"/>
                        <span class="form-required">*</span>
					</div>
				</div>
                <div class="control-group normal">
					<label class="control-label">{:lang('CUBE_PRICE')}</label>
					<div class="controls">
						<input type="text" name="price" class="form-control" value="" id="price"/>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:lang('SQUARE_PRICE')}</label>
					<div class="controls">
						<input type="text" name="stock" class="form-control" value="" id="stock"/>
                        <span class="form-required">*</span>
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">{:lang('ROCK_IMG')}</label>
					<div class="controls">
                        <input type="hidden" name="photos_url" id="photos_url" value="">
                        <img height="36" src="" class="preview isHide" id="photos_url_preview" />
						<a class="btn btn-primary" onClick="upload_one_image('石材图片', '#photos_url')">{:lang("UPLOAD")}</a>
						<span class="form-required">*</span>
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">{:lang('STATUS')}</label>
					<div class="controls">
                    	<input type="radio" name="if_show" checked>启用
                    	<input type="radio" name="if_show"> 关闭       
					</div>
				</div>                
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</form>
	</div>
    <admintpl file="Goods/include"/>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
	<script type="text/javascript">
        $("#btn").click(function(){
            upload_one("视频上传", "#video_path", "video");
        });
		
    </script>
</body>
</html>